package jp.ac.u_tokyo.dch.util.tag;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.SimpleTagSupport;

import jp.ac.u_tokyo.dch.model.output.XmlComposite;

public class ConvXmlDisplayTag extends SimpleTagSupport {

	private XmlComposite name;

	private String sort;

	private Map<String, List<String>> fieldErrors;


	public void setName(XmlComposite name){this.name = name;}

	public void setSort(String sort) {this.sort = sort;}

	public void setFieldErrors(Map<String, List<String>> fieldErrors) {this.fieldErrors = fieldErrors;}


	public void doTag() throws JspException {

		PageContext pageContext = (PageContext) getJspContext();
        JspWriter out = pageContext.getOut();
        try {
			out.println(name.toHtml(0,sort, fieldErrors));
		} catch (IOException e) {
		}
	}




}
